package com.yiji.fintech.musfinance.center.deposit.order.facade;

import com.acooly.core.utils.Money;
import com.acooly.core.utils.ToString;
import com.yiji.fintech.musfinance.base.enums.CardTypeEnum;
import com.yiji.fintech.musfinance.base.enums.PersonalCorporateTypeEnum;
import com.yiji.fintech.musfinance.center.base.order.OrderFacade;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 网银表单Order
 * Created by ouwen@yiji.com} on 2017/5/11.
 */
@Data
public class OnlineFacadeOrder extends OrderFacade {
    /**商品标题 必填*/
    @NotEmpty
    private String goodsTitle;
    /**商品描述 必填*/
    @NotEmpty
    private String goodsMemo;
    /**付款金额-必填*/
    @NotNull
    protected Money amount;
    /**银行编码 必填*/
    @NotEmpty
    private String bankId;
    /**银行卡类型 必填*/
    @NotNull
    private CardTypeEnum cardType;
    /**对公对私 必填*/
    @NotNull
    protected PersonalCorporateTypeEnum personalCorporateType;
    @Override
    public String toString() {
        return ToString.toString(this);
    }
}
